package com.dianping.cat.alarm.rule.entity;

import com.dianping.cat.alarm.rule.BaseEntity;
import com.dianping.cat.alarm.rule.IVisitor;








public class MetricItem
  extends BaseEntity<MetricItem>
{
  private Boolean m_monitorCount;
  private Boolean m_monitorSum;
  private Boolean m_monitorAvg;
  private String m_metricItemText;
  private String m_productText;

/*  22 */   public void accept(IVisitor visitor) { visitor.visitMetricItem(this); }



  public boolean equals(Object obj) {
/*  27 */     if (obj instanceof MetricItem) {
/*  28 */       MetricItem _o = (MetricItem)obj;

/*  30 */       if (!equals(getMonitorCount(), _o.getMonitorCount())) {
        return false;
      }

/*  34 */       if (!equals(getMonitorSum(), _o.getMonitorSum())) {
/*  35 */         return false;
      }

/*  38 */       if (!equals(getMonitorAvg(), _o.getMonitorAvg())) {
/*  39 */         return false;
      }

/*  42 */       if (!equals(getMetricItemText(), _o.getMetricItemText())) {
/*  43 */         return false;
      }

/*  46 */       if (!equals(getProductText(), _o.getProductText())) {
/*  47 */         return false;
      }


/*  51 */       return true;
    }

/*  54 */     return false;
  }


/*  58 */   public String getMetricItemText() { return this.m_metricItemText; }



/*  62 */   public Boolean getMonitorAvg() { return this.m_monitorAvg; }



/*  66 */   public Boolean getMonitorCount() { return this.m_monitorCount; }



/*  70 */   public Boolean getMonitorSum() { return this.m_monitorSum; }



/*  74 */   public String getProductText() { return this.m_productText; }





/*  91 */   public boolean isMonitorAvg() { return (this.m_monitorAvg != null && this.m_monitorAvg.booleanValue()); }



/*  95 */   public boolean isMonitorCount() { return (this.m_monitorCount != null && this.m_monitorCount.booleanValue()); }



/*  99 */   public boolean isMonitorSum() { return (this.m_monitorSum != null && this.m_monitorSum.booleanValue()); }



  public void mergeAttributes(MetricItem other) {
/* 104 */     if (other.getMonitorCount() != null) {
/* 105 */       this.m_monitorCount = other.getMonitorCount();
    }

/* 108 */     if (other.getMonitorSum() != null) {
/* 109 */       this.m_monitorSum = other.getMonitorSum();
    }

/* 112 */     if (other.getMonitorAvg() != null) {
/* 113 */       this.m_monitorAvg = other.getMonitorAvg();
    }

/* 116 */     if (other.getMetricItemText() != null) {
/* 117 */       this.m_metricItemText = other.getMetricItemText();
    }

/* 120 */     if (other.getProductText() != null) {
/* 121 */       this.m_productText = other.getProductText();
    }
  }

  public MetricItem setMetricItemText(String metricItemText) {
/* 126 */     this.m_metricItemText = metricItemText;
/* 127 */     return this;
  }

  public MetricItem setMonitorAvg(Boolean monitorAvg) {
/* 131 */     this.m_monitorAvg = monitorAvg;
/* 132 */     return this;
  }

  public MetricItem setMonitorCount(Boolean monitorCount) {
/* 136 */     this.m_monitorCount = monitorCount;
/* 137 */     return this;
  }

  public MetricItem setMonitorSum(Boolean monitorSum) {
/* 141 */     this.m_monitorSum = monitorSum;
/* 142 */     return this;
  }

  public MetricItem setProductText(String productText) {
/* 146 */     this.m_productText = productText;
/* 147 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/rule/entity/MetricItem.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */